<h1 class='center'><%= t('password_resets.reset_password') %></h1>

<div class="row">
  <div class="col-md-6 col-md-offset-3">
    <%= form_for(@user, url: password_reset_path(params[:id])) do |f| %>
      <%= render 'shared/error_messages', object: f.object %>

      <%= hidden_field_tag :email, @user.email %>

      <%= f.label :password, t('users.new.password') %>
      <%= f.password_field :password, class: 'form-control' %>

      <%= f.label :password_confirmation,
                  t('password_resets.password_confirmation') %>
      <%= f.password_field :password_confirmation, class: 'form-control' %>

      <%= f.submit t('password_resets.update_password'),
                   class: "btn btn-primary" %>
    <% end %>
  </div>
</div>
